# -*- coding: utf-8 -*-
"""
# --------------------------------------------------------
# @Author : Pan
# @E-mail : 
# @Date   : 2025-05-21 11:11:14
# @Brief  :
# --------------------------------------------------------
"""
from typing import List, Dict
from pybaseutils import log

logger = log.set_logger(format="function", level="debug")


def print_info(title, msgs: List[Dict]):
    if isinstance(msgs, dict): msgs = [msgs]
    for i, info in enumerate(msgs):
        logger.info("{}[{}]={}".format(title, i, info))


if __name__ == '__main__':
    logger.debug("debug")
    logger.info("info")
    logger.info("info")
    logger.info("info")
    logger.info("info")
    logger.warning("warning")
    logger.error("error")
